using System.Collections.Generic;
using battlenet.wow.rt.domain;
using Newtonsoft.Json;

namespace battlenet.wow.rt.sdk.data.dto
{
    internal class ItemInfo
    {
        [JsonProperty("id")]
        public int ID { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("icon")]
        public string Icon { get; set; }
        
        public string IconLink { get { return Icon == null ? null : string.Format(ApplicationConstants.IconHost, Icon); } }

        [JsonProperty("quality")]
        public int Quality { get; set; }

        [JsonProperty("itemLevel")]
        public int ItemLevel { get; set; }

        [JsonProperty("tooltipParams")]
        public TooltipParamsInfo TooltipParams { get; set; }

        [JsonProperty("stats")]
        public List<StatInfo> Stats { get; set; }

        [JsonProperty("armor")]
        public int Armor { get; set; }

        [JsonProperty("context")]
        public string Context { get; set; }

        [JsonProperty("bonusLists")]
        public List<int> BonusLists { get; set; }
    }
}